package com.ljz.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@TableName(value = "sku")
@NoArgsConstructor
@AllArgsConstructor
public class Sku {

    @TableId(value = "sku_id",type = IdType.AUTO)
    Long sku_id;

    Long spu_id;
    String sku_name;
    String attrs;
    String img_url;
    Long price_fee;
    Long market_price_fee;
    String party_code;
    String model_id;
    Double weight;
    Double volume;
    Integer status;

    @TableField(exist = false)
    Integer actual_stock;//实际库存


}
